package com.hinnotek.amoeba.ui.activity.old

import android.os.Bundle
import android.view.*
import com.lee.common.base.BaseActivity
import com.hinnotek.amoeba.R
import com.hinnotek.amoeba.databinding.ActivityFinancialListBinding
import com.hinnotek.amoeba.utilities.IntentUtils


class FinancialListActivity : BaseActivity<ActivityFinancialListBinding>(), View.OnClickListener {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setLeftVisible(true)
        setTitle("财务列表")

        setContentView(R.layout.activity_financial_list)
    }

    override fun initVew() {
        bindingView.rlLaborCost.setOnClickListener(this)
        bindingView.rlProductManagement.setOnClickListener(this)
        bindingView.rlAmountAllocated.setOnClickListener(this)
        bindingView.rlPayBack.setOnClickListener(this)
        bindingView.rlRDCostAllocation.setOnClickListener(this)
    }

    override fun setData() {}
    override fun onClick(v: View) {
        when (v.id) {
            R.id.rl_labor_cost -> IntentUtils.startActivity(
                mContext,
                LaborCostListActivity::class.java
            ) //人工成本列表Activity
            R.id.rl_product_management -> IntentUtils.startActivity(
                mContext,
                ProductListActivity::class.java
            )
            R.id.rl_amount_allocated -> IntentUtils.startActivity(
                mContext,
                AmountAllocatedActivity::class.java
            )
            R.id.rl_pay_back -> IntentUtils.startActivity(mContext, PayBackListActivity::class.java)
            R.id.rl_r_d_cost_allocation -> IntentUtils.startActivity(
                mContext,
                RdCostAllocationActivity::class.java
            )
        }
    }
}